package page.request;

import com.github.pagehelper.IPage;

/**
 * @Auther lolineet
 * @Email tj.zhanghongwei@163.com
 * @Date 2021/11/24 14:12
 * @Description 分页请求参数
 */
public class PageRequest<T> implements IPage {

    /**
     * description = "页码", defaultValue =  1
     */
    private int pageNum;

    /**
     * description = "页数", defaultValue = 20
     */
    private int pageSize = 20;

    /**
     * description = "排序", example = "id desc"
     */
    private String orderBy;

    /**
     * description = "参数"
     */
    private T param;

    @Override
    public Integer getPageNum() {
        return pageNum;
    }

    public void setPageNum(int pageNum) {
        this.pageNum = pageNum;
    }

    @Override
    public Integer getPageSize() {
        return pageSize;
    }

    public void setPageSize(int pageSize) {
        this.pageSize = pageSize;
    }

    @Override
    public String getOrderBy() {
        return orderBy;
    }

    public void setOrderBy(String orderBy) {
        this.orderBy = orderBy;
    }

    public T getParam() {
        return param;
    }

    public void setParam(T param) {
        this.param = param;
    }
}
